{template 'common/header'}
<ul class="nav nav-tabs">
    <li><a href="{php echo  $this->createWebUrl('type', array('name'=>'xm_housekeep_we7'));}">服务类别</a></li>
    <li class="active"><a href="{php echo  $this->createWebUrl('typeadd', array('name'=>'xm_housekeep_we7'));}">添加类别</a></li>
	<li><a href="{php echo  $this->createWebUrl('project', array('name'=>'xm_housekeep_we7'));}">类别项目</a></li>
	<li><a href="{php echo  $this->createWebUrl('projectadd', array('name'=>'xm_housekeep_we7'));}">添加项目</a></li>
</ul>

<div class="clearfix">    
    <form id="theform" class="form form-horizontal" action="{php echo $this->createWebUrl('typeaddok', array('name'=>'xm_housekeep_we7'));}" method="post">
	<input type="hidden" name="id" value="{$item['id']}" />
        <div class="panel panel-default">
            <div class="panel-heading">
                添加服务类别
            </div>
            <div class="panel-body">
                
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">类别名称</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" name="name" id="name" value="{$item['name']}" class="form-control">
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">显示图标</label>
                    <div class="col-sm-9 col-xs-12">
                        {php echo tpl_form_field_image('icon',$item['icon']);}
                    </div>
                </div>
				
				<div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">显示排序</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" name="top" id="top" value="{$item['top']}" class="form-control">
						<span class="help-block">数字越小越靠前</span>
                    </div>
                </div>
                
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-md-2 col-lg-1">
                        <input name="submit" type="submit" value="保存" class="btn btn-primary btn-block" />
                        <input type="hidden" name="token" value="{$_W['token']}" />
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>


{template 'common/footer'}